﻿using System.ComponentModel;
using CI.Models.Data;

namespace CI.Models.Production.Interfaces
{
    public interface IQuantifiedItem : INotifyPropertyChanged
    {
        Item Item { get; }
        int Total { get; set; }
    }

    public class QuantifiedItem : ModelBase, IQuantifiedItem
    {
        public QuantifiedItem(Item item) : this(item,1)
        {
        }

        public QuantifiedItem(Item item, int quantity)
        {
            Item = item;
            Total = quantity;
        }

        public Item Item { get; private set; }
        public int Total { get; set; }
    }
}